// cover some element-ui styles
.el-table .cell > * {
  position: relative;
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
  border-radius: 10px;

  // 更改弹框样式
  .el-dialog__header {
    background-color: #f4f6fa;
    border-radius: 10px 10px 0 0;
  }

  .el-dialog__footer {
    background-color: #f4f6fa;
    padding: 15px 30px;
    border-radius: 0px 0px 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .el-dialog__title {
    position: relative;
    color: #252d57;
    font-weight: bold;
    padding-left: 15px;
    user-select: none;

    &:before {
      content: "";
      width: 5px;
      height: 100%;
      background-color: #2a72ee;
      border-radius: 5px;
      position: absolute;
      left: 0;
      bottom: 0;
    }
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}
.el-button {
  position: relative;
  border-radius: 4px;
}

.divider {
  height: 40px;
  background-color: #f7f7f7;
  position: relative;
  width: calc(100% + 30px);
  transform: translateX(-15px);
  div:nth-child(1) {
    position: absolute;
    top: 0;
    height: 15px;
    width: 100%;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
  }
  div:nth-child(2) {
    position: absolute;
    bottom: 0;
    height: 15px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
  }
}
.tableoperation {
  margin-bottom: 20px;
}

.app-container {
  padding: 0px 0px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
}
.searchform {
  margin: 0px 0px 15px;
  background: #ffffff;
  padding: 15px 15px 0px;
  border-radius: 5px;

  .el-row {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }

  .el-col {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}
.table-wrapper {
  flex: 1;
  margin: 0px 0px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 20px 20px;
  border-radius: 5px;
}
.pagination-container {
  margin-top: 15px;

  .el-pagination {
    text-align: center;
  }
}

.el-dialog__body {
  padding-top: 20px;
  padding-bottom: 4px;
}
.el-table__body .el-table__cell {
  padding: 4px 0;
}
// 自定义预览图片弹框
.cusviewimgdialog {
  z-index: 9999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  margin: 0;
  // background-color: rgba(228, 58, 58, 0.815);
  display: flex;
  align-items: center;
  justify-content: space-around;
  opacity: 0.5;
  background: #000;
  .el-image-viewer__close {
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #fff;
    background-color: #606266;
  }
}
.el-dialog__wrapper {
  position: fixed;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  // top: 50%;
  // transform: translateY(-50%);
}
.el-dialog {
  -webkit-transform: none;
  transform: none;
  margin: inherit;
  margin-top: 0 !important;
  height: fit-content;
  overflow-x: hidden;
  overflow-y: hidden;

  &::-webkit-scrollbar-track-piece {
    background: #d3dce6;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
  }

  .el-dialog__body {
    padding: 20px 20px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .el-dialog__footer {
    .el-button:nth-of-type(1) {
      margin-right: 50px;
    }
  }
}

.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
  box-shadow: none;
}

.el-upload-list__item-delete {
  position: absolute !important;
  top: -5px;
  right: 0px;
}
